﻿using Newtonsoft.Json;

namespace Fadada.FASC.SDK.DotNetCore.Model
{
    public class RespDocTemplateGetListInfo
    {
        /// <summary>
        /// 文档模板列表，数组类型。
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "docTemplates", Required = Required.AllowNull)]
        public DocTemplate[] DocTemplates { get; set; }

        /// <summary>
        /// 列表当前分页，当前第几页。页码从1开始，即首页为1。
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "listPageNo",
            Required = Required.Always)]
        public int ListPageNo { get; set; }

        /// <summary>
        /// 当前返回页中的文档模板数量，即数组大小。
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "countInPage",
            Required = Required.Always)]
        public int CountInPage { get; set; }

        /// <summary>
        /// 列表总分页数。
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "listPageCount",
            Required = Required.Always)]
        public int ListPageCount { get; set; }

        /// <summary>
        /// 查询到的文档模板总数。
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "totalCount",
            Required = Required.Always)]
        public int TotalCount { get; set; }
    }
}